<template>
  

<el-container style="height: 500px; border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :default-openeds="['1', '3']">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>Css</template>
        <el-menu-item-group>
          <template slot="title">Css</template>
          <el-menu-item index="1-1">样式基础</el-menu-item>
          <el-menu-item index="1-2">样式类型</el-menu-item>
        </el-menu-item-group>
        
      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-menu"></i>Vue</template>
        <el-menu-item-group>
          <template slot="title">Vue</template>
          <el-menu-item index="2-1">Vue基础</el-menu-item>
          <el-menu-item index="2-2">Vue指令</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>React</template>
        <el-menu-item-group>
          <template slot="title">React</template>
          <el-menu-item index="3-1">React生命周期</el-menu-item>
          <el-menu-item index="3-2">React基础</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
  
  <el-container>
    <el-header style="text-align: right; font-size: 12px">
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <span>王小虎</span>
    </el-header>
    
    <el-main>
      <el-table :data="tableData">
      <el-table-column  prop="name" width="340" ></el-table-column>
      </el-table>
      <el-table :data="tableData2">
        <el-table-column prop="address" width="550">
         
        </el-table-column>
      </el-table>
      <el-table :data="tableData2">
        <el-table-column prop="address" width="550"></el-table-column>
      </el-table>
    </el-main>
  </el-container>
</el-container>
</template>
<script>
  export default {
    data() {
      const item = {
        name: '指令：以 v-开头的特殊属性，主要用来操作 DOM',
      };
      const item2 = {
        address: '1.v-text:解析纯文本 v-text="值" 值需要在数据中声明，作用类似于{{}}语法'
       
      };
      return {
        tableData: Array(1).fill(item),
        tableData2: Array(1).fill(item2)
      }
    }
  };
</script>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>

